#include "BackGroundForTitle.h"

BackGroundForTitle::BackGroundForTitle()
{
	this->loadImageWith("startbg.png");
}

BackGroundForTitle::~BackGroundForTitle()
{
}

void BackGroundForTitle::update(CDC* mdc)
{
	drawBg(mdc);
}

void BackGroundForTitle::drawBg(CDC* mdc)
{
	//image.AlphaBlend(mdc->m_hDC, 0, 0, image.GetWidth(), image.GetHeight(), 0, 0, image.GetWidth(), image.GetHeight());
	image.AlphaBlend(*mdc, x, 0, image.GetWidth(), image.GetHeight(), 0, 0, image.GetWidth(), image.GetHeight());
}

void BackGroundForTitle::getMove(int x)
{
	this->x = x;
}
